<?php 
get_header();
get_sidebar();
?>
    <div id="content">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			<div <?php post_class('entry'); ?>>
 				<?php if (function_exists('has_post_format') && has_post_format( 'gallery' )) { ?>
 				<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
 				<?php } else { ?>
 				<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
				<span class="emph"><?php the_date(); ?></span>
				<?php } ?>
				<br />
				<?php the_content(); ?>
				<p class="postmetadata">Category: <?php the_category(', ') ?> <br />  
				<?php the_tags(); ?> <br /> 
				<?php edit_post_link('Edit','',''); ?> <br />
				<?php comments_popup_link('Comments', 'Comments (1)', 'Comments (%)'); ?></p>
		</div>	
		<?php endwhile; else: ?>
		<div class="par">
		<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
		</div>
		<?php endif; ?>
<?php 
get_footer();
?>
